<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%><%@ page
	language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
<head>
<jsp:include page="../defaults/tagHeadContent.jsp" />
</head>
<body>

	<jsp:include page="../defaults/header.jsp" />
	<div id="wrapper">
		<div id="content">
			<jsp:include page="../defaults/sidebar.jsp" />

			<div id="list">
				<form id="userInfo" action="<c:url value="/user/info"/>"
					method="POST">
					<fieldset>
						<legend>Informações sobre usuário</legend>
						<label for="name">Nome:</label> <input id="name" type="text"
							name="user.name" value="${user.name }" /> <br /> <label
							for="email">Email:</label> <input id="email" type="text"
							name="user.email" value="${user.email }" /> <br /> <label
							for="login">Login:</label> <input id="login" type="text"
							name="user.login" value="${user.login }" readonly="readonly" /><br />
						<label for="password">Senha:</label> <input id="password"
							type="password" name="user.password" /><br /> <label
							for="passwordConfirmation">Confirme a senha:</label> <input
							id="passwordConfirmation" type="password"
							name="passwordConfirmation" /><br />
						<c:if test="${webUser.administrator}">
                Tipo de acesso: <br />
							<input id="regularUser" type="radio" name="user.administrator"
								value="false"
								<c:if test="${!user.administrator}"> checked="checked" </c:if> />Usuário <br />
							<input id="admin" type="radio" name="user.administrator"
								value="true"
								<c:if test="${user.administrator}"> checked="checked" </c:if> />Administrador                  
                </c:if>


						<br />
						<button type="submit" name="_method" value="PUT">Editar</button>
					</fieldset>
				</form>


			</div>

		</div>
		<div style="clear: both;">&nbsp;</div>
	</div>

	<jsp:include page="../defaults/footer.jsp" />
</body>
</html>
